import Vue from 'vue'
import App from './App.vue'
import Storage from 'vue-ls'
import router from './router'
import less from 'less'
import './tool/dictionary'
import * as echarts from 'echarts'
import ElementUI from 'element-ui'
import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n
import 'element-ui/lib/theme-chalk/index.css'
import './styles/default.css'
import "./utils/SmCrypto-2.6.js"
import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'

import store from './store'
import '@/permission' // permission control
Vue.config.productionTip = false
Vue.use(less)
Vue.use(VXETable)
Vue.prototype.$echarts = echarts
Vue.use(ElementUI, {
        size: 'medium', // set element-ui default size
        locale
    })
    // vue-ls 的配置
const storageOptions = {
    namespace: 'hyyp__', // key prefix
    name: 'ls', // name variable Vue.[ls] or this.[$ls],
    storage: 'session', // storage name session, local, memory
}
Vue.use(Storage, storageOptions)
import BaiduMap from 'vue-baidu-map'
// 百度地图
Vue.use(BaiduMap, {
  ak: 'HsYVlxe4R49UGrBvkEbMP8aXRaNUATLz'
})
new Vue({
    router,
    store,
    mounted() {
        // store.commit('SET_TOKEN', Vue.ls.get(ACCESS_TOKEN))
    },
    render: h => h(App)
}).$mount('#app')